package cn.com.cym.gamezao.service.xmu;

import cn.com.cym.gamezao.base.BaseService;
import cn.com.cym.gamezao.base.SearchPage;
import cn.com.cym.gamezao.dto.RecruitSearchDto;
import cn.com.cym.gamezao.entity.xmu.Recruit;
import cn.com.cym.gamezao.enums.UserType;
import org.springframework.data.domain.Page;

import java.util.List;

public interface RecruitService extends BaseService<Recruit> {

    List<Recruit> search(RecruitSearchDto searchDto);

    Recruit submit(Recruit recruit);

    Recruit saveByCurrentUser(Recruit recruit);

    Recruit getByCurrentUser();

    Recruit getById(Long id);

    Page findByPageableAndUserType(SearchPage searchPage, UserType userType);
}
